Skip to content

Fix assoc type where clause position #20235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 13, 2025

Conversation

A4-Tacks
Copy link
Contributor

Code:

trait Foo {
    type X<'a> where Self: 'a;
}
impl Foo for () {
    $0
}

Current:

trait Foo {
    type X<'a> where Self: 'a;
}
impl Foo for () {
    type X<'a> where Self: 'a = $0;
}

This pr fixed:

trait Foo {
    type X<'a> where Self: 'a;
}
impl Foo for () {
    type X<'a> = $0 where Self: 'a;
}

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 13, 2025
Copy link
Member

@ShoyuVanilla ShoyuVanilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ShoyuVanilla ShoyuVanilla added this pull request to the merge queue Jul 13, 2025
Merged via the queue into rust-lang:master with commit 9c52f2e Jul 13, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants